package com.hpc.mapper;

import entity.article;
import entity.message;
import entity.user;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface adminMapper {
    public int userForbidden(@Param("serial") String userId);
    public int unForbidden(@Param("serial") String userId);
    public int deleteUser(@Param("serial") String userId);
    public List<user> allUserInfo();
    int deleteArticle(@Param("articleId") String articleId);
    List<article> allArticleInfo();
    List<article> getByType(Integer type);
    public int login(@Param("username") String username,@Param("password") String password);
    public List<message> allMessages();
    public int deleteMessage(@Param("messageId") String messageId);

    void deleteUserArticle(String userId);

    void deleteUserComment(String userId);
}
